var should = require('should');
var sevenDayHandler = require('../../../app/servers/user/handler/sevenDayHandler.js');
var sevenDayActivityModel = require('../../../app/models/sevenDayActivityModel.js');
var config = require('../../config');

suite('测试7天活动', function () {
    var seven_day_task_model;
    suite('reward', function () {
        setup(function (done) {
            sevenDayActivityModel.getByRoleId(config.other_role_id, function (err, model) {
                seven_day_task_model = model;
            });
            done();
        });

        test('领取vip奖励', function (done) {
            var msg = {};
            msg.seven_day_task_id = 401;
            var session = {};
            session.uid = config.role_id;

            var seven_handler = new sevenDayHandler();
            seven_handler.reward(msg, session, function (err, res) {
                console.log('res:', res);
                done();
            });
        });
    });
});
